<%@page import="com.blockchain.front.servlets.content.wzxx.Zczx"%>
<%@page import="com.blockchain.front.servlets.content.wzxx.Zxzx"%>
<%@page import="com.blockchain.front.service.content.entity.Article"%>
<%@page import="com.blockchain.front.service.content.ContentManage"%>
<%@page import="com.blockchain.front.servlets.AbstractFrontServlet"%>
<%@page import="com.blockchain.common.enums.ArticleType"%>
<%{
	ContentManage articleManage = serviceSession.getService(ContentManage.class);
	PagingResult<Article> zxzx = articleManage.search(ArticleType.ZXZX, AbstractFrontServlet.INDEX_PAGING);
	PagingResult<Article> zczx = articleManage.search(ArticleType.ZCZX, AbstractFrontServlet.INDEX_PAGING);
	Article[] zxzxs = zxzx.getItems();//最新资讯
	Article[] zczxs = zczx.getItems();//众筹资讯
	int tabCount = 0;
	if(zxzxs!=null&&zxzxs.length>0){
		tabCount++;
	}
	if (zczxs != null&&zczxs.length>0) {
		tabCount++;
	}
%> 

 <%if (tabCount>0) {%>
<div class="w33 mlr60"  style="width:575px;">
            <div class="news_title clearfix">
                <h2 class="left">
                    <a target="_blank" href="<%=controller.getViewURI(request, Zxzx.class)%>"> <%=languageDefine.getValue(request, "info_latestNews")%></a>
                </h2>
                <a href="<%=controller.getViewURI(request, Zxzx.class)%>" class="right"><%=languageDefine.getValue(request, "info_more")%>>></a>
            </div>
            <ul>
                <%if (zxzxs != null&&zxzxs.length>0) {%>
               	<%for (Article article : zxzxs) {if (article == null) {continue;}%>
                <li>
                    <a href="<%=controller.getPagingItemURI(request, Zxzx.class,article.id )%>">
                        <span class="coin_news_title left" style="width:480px;"><%StringHelper.filterHTML(out, backgroundDataFlag==1?article.title:backgroundDataFlag==2?article.titleEn:article.titleTw);%></span>
                        <span class="right"><%=TimestampParser.format(article.publishTime, "yyyy-MM-dd")%></span>
                    </a>
                </li>
                <%}}%>
            </ul>
        </div>


    <%-- <div class="w33">
            <div class="news_title clearfix">
                <h2 class="left">
                    <a target="_blank" href="<%=controller.getViewURI(request, Zczx.class)%>"> <%=languageDefine.getValue(request, "info_allTheChipsNews")%></a>
                </h2>
                <a href="<%=controller.getViewURI(request, Zxzx.class)%>" class="right"><%=languageDefine.getValue(request, "info_more")%>>></a>
            </div>
            <ul>
            	<%if (zczxs != null&&zczxs.length>0) {%>
               	<%for (Article article : zczxs) {if (article == null) {continue;}%>
                <li>
                    <a href="<%=controller.getPagingItemURI(request, Zczx.class,article.id )%>">
                        <span class="coin_news_title left"><%StringHelper.filterHTML(out, backgroundDataFlag==1?article.title:backgroundDataFlag==2?article.titleEn:article.titleTw);%></span>
                        <span class="right"><%=DateParser.format(article.publishTime)%></span>
                    </a>
                </li>
                <%}}%>
            </ul>
         </div> --%>
<%}}%>
